package com.whfc.safety.service;

import com.whfc.common.exception.BizException;
import com.whfc.safety.dto.SafetyAreaDTO;
import com.whfc.safety.param.SafetyAreaAddParam;
import com.whfc.safety.param.SafetyAreaEditParam;

import java.util.List;

/**
 * @Description 责任区域
 * @Author hw
 * @Date 2021-08-16 16:00
 * @Version 1.0
 */
public interface SafetyAreaService {

    /**
     * 责任区域列表
     *
     * @param deptId
     * @param name
     * @param keyword
     * @return
     * @throws BizException
     */
    List<SafetyAreaDTO> list(Integer deptId, String name, String keyword) throws BizException;


    /**
     * 新增责任区域
     *
     * @param param
     * @throws BizException
     */
    void add(SafetyAreaAddParam param) throws BizException;


    /**
     * 修改责任区域
     *
     * @param param
     * @throws BizException
     */
    void edit(SafetyAreaEditParam param) throws BizException;


    /**
     * 删除责任区域
     *
     * @param areaId
     * @throws BizException
     */
    void del(Integer areaId) throws BizException;
}
